package com.hopes.bizz.close.common.service;

import com.hopes.bizz.close.basic.entity.ClosedControlAreaEntity;
import com.hopes.bizz.close.basic.mapper.*;
import com.hopes.bizz.close.flow.mapper.ClosedHazardGoodsMapper;
import com.hopes.bizz.close.hazard.mapper.ClosedHazardCarMapper;
import com.hopes.boss.admin.api.entity.SysDictItem;
import com.hopes.boss.common.service.TableDictService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 数据表转字典
 * @time 2023/10/18 14:42
 */

@Slf4j
@Service
@RequiredArgsConstructor
public class ParkCloseDictServiceImpl implements TableDictService {

    /**
     * 园区卡口
     */
    private final ClosedGateMapper closedGateMapper;

    /**
     * 道路信息
     */
    private final ClosedRoadMapper closedRoadMapper;

    /**
     * 园区人员
     */
    private final ClosedPersonMapper closedPersonMapper;

    /**
     * 危险品车辆
     */
    private final ClosedHazardCarMapper closedHazardCarMapper;

    /**
     * 普通车辆
     */
    private final ClosedGeneralCarMapper closedGeneralCarMapper;

    /**
     * Gps设备
     */
    private final ClosedGpsDeviceMapper closedGpsDeviceMapper;

    /**
     * 园区门禁
     */
    private final ClosedAccessControlMapper closedAccessControlMapper;

    /**
     * 分级管控区域
     */
    private final ClosedControlAreaMapper closedControlAreaMapper;


    private final ClosedHazardGoodsMapper closedHazardGoodsMapper;



    public List<SysDictItem> listClosedGateListAsDict() {
        return closedGateMapper.labelValueList();
    }

    public List<SysDictItem> listClosedRoadListAsDict() {
        return closedRoadMapper.labelValueList();
    }

    public List<SysDictItem> listClosedPersonListAsDict() {
        return closedPersonMapper.labelValueList();
    }

    public List<SysDictItem> listClosedHazardCarListAsDict() {
        return closedHazardCarMapper.labelValueList();
    }


    public List<SysDictItem> listClosedGeneralCarListAsDict() {
       return closedGeneralCarMapper.labelValueList();
    }


    public List<SysDictItem> listClosedGpsDeviceListAsDict() {
        return closedGpsDeviceMapper.labelValueList();
    }

    public List<SysDictItem> listCanSelectGpsDeviceAsDict() {
        return closedGpsDeviceMapper.listCanSelectGpsDeviceAsDict();
    }

    public List<SysDictItem> listClosedAccessControlListAsDict() {
        return closedAccessControlMapper.labelValueList();
    }


    public List<SysDictItem> listClosedControlAreaListAsDict() {
        return closedControlAreaMapper.labelValueList();
    }


    public List<SysDictItem> listClosedHazardGoodsListAsDict() {
        return closedHazardGoodsMapper.labelValueList();
    }

}
